It is not used anywhere by Mutter itself so move it here
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3088>
typedef const gchar *(*ShellGLGetString) (GLenum);
cairo_surface_t *
-shell_util_composite_capture_images (ClutterCapture *captures,
- int n_captures,
- int x,
- int y,
- int target_width,
- int target_height,
- float target_scale)
+shell_util_composite_capture_images (StCapture *captures,
+ int n_captures,
+ int x,
+ int y,
+ int target_width,
+ int target_height,
+ float target_scale)
{
int i;
cairo_format_t format;
for (i = 0; i < n_captures; i++)
{
- ClutterCapture *capture = &captures[i];
+ StCapture *capture = &captures[i];
cairo_save (cr);
G_BEGIN_DECLS
+typedef struct _StCapture
+{
+ cairo_surface_t *image;
+ MtkRectangle rect;
+} StCapture;
+
void shell_util_set_hidden_from_pick (ClutterActor *actor,
gboolean hidden);
int height,
int rowstride);
-cairo_surface_t * shell_util_composite_capture_images (ClutterCapture *captures,
- int n_captures,
- int x,
- int y,
- int target_width,
- int target_height,
- float target_scale);
+cairo_surface_t * shell_util_composite_capture_images (StCapture *captures,
+ int n_captures,
+ int x,
+ int y,
+ int target_width,
+ int target_height,
+ float target_scale);
void shell_util_check_cloexec_fds (void);